package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.CstLostDao;
import cn.com.bdqn.entity.CstCustomer;
import cn.com.bdqn.entity.CstLost;
import cn.com.bdqn.service.CstLostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CstLostServiceImpl implements CstLostService {

    @Autowired
    private CstLostDao dao;

    @Override
    public List<Map> queryByLike(String custManagerName, String custName, String lstStatus) {
        return dao.queryByLike(custManagerName,custName,lstStatus);
    }

    @Override
    public Map queryByLstId(Long lstId) {
        return dao.queryByLstId(lstId);
    }

    @Override
    public int updateCstLost(CstLost cstLost) {
        return dao.updateCstLost(cstLost);
    }

    @Override
    public List<CstCustomer> queryOutCustomer() {
        return dao.queryOutCustomer();
    }

    @Override
    public void addLost(CstLost lost) {
        dao.addLost(lost);
    }
}
